package org.eiahe.hr.attendance.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.eiahe.hr.attendance.domain.EmployeeShift;

import java.time.LocalDate;
import java.util.Date;

/**
 * 员工-班次关联视图对象
 *
 * @author zhangnn
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = EmployeeShift.class)
public class EmployeeShiftVo {

    /**
     * 主键ID
     */
    @ExcelProperty(value = "ID")
    private Long id;

    /**
     * 工号
     */
    @ExcelProperty(value = "工号")
    private String employeeNo;

    /**
     * 员工姓名
     */
    @ExcelProperty(value = "员工姓名")
    private String employeeName;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 班次ID
     */
    private Long shiftId;

    /**
     * 班次名称
     */
    @ExcelProperty(value = "班次名称")
    private String shiftName;

    /**
     * 生效日期
     */
    @ExcelProperty(value = "生效日期")
    private LocalDate effectiveDate;

    /**
     * 失效日期
     */
    @ExcelProperty(value = "失效日期")
    private LocalDate expiryDate;

    /**
     * 状态(0正常 1停用)
     */
    @ExcelProperty(value = "状态")
    private String status;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 班次信息
     */
    private ShiftVo shiftVo;
}
